{template admin/head}
<script type="text/javascript">
var ajaxparam = {
		'url' : '{SITE_URL}/ajax/admin.php'
};
function deladmin(id,status){
	if(id){
		var url = ajaxparam.url + '&m=del&isajax=true';
		var data = {
				'id' : id,
				'status':status,
		};
		var callback = function(data){
			if(data.status == 1){
				alert(data.msg);
				refreshpage();
			}else{
				if(data.msg){
					alert(data.msg);
				}else{
					alert('操作失败');
				}
			}
		};
		makeAjax('post',url,data,callback);
	}else{
		alert('参数错误');
	}
}
</script>
<body>
<div class="wrapper">
	<div class="crumbs"><a href="{SITE_URL}admin.php?a={$action}">{$fTitle}</a> &gt; <span>{$sTitle}</span> </div>
	
	<div class="container_tit clearfix mb20 ft14">
	
	<form action="{SITE_URL}admin.php?a={$action}" method="get">
		<input type="hidden" name="a" value="{$action}" />
        
        
        <div class="btn_box fl">
        	<span>申请时间段</span>
        	<input type="text" class="w200 text" style="width:200px;" class="text" format='time' name='start' id="start" value="{$parm['start']}" placeholder="请输入日期">
			<span>至</span>
			<input type="text" class="mr15 w200 text" style="width:200px;" class="text" format='time' name='end' id="end" value="{$parm['end']}" placeholder="请输入日期">
       </div>
       
       <div class="choose fl mr15">
        	<span>提现状态</span>
            <select class="select w150" name="status">
            	<option value="">请选择</option>
            	<option {if $parm['status']=='1'}selected{/if} value="1">未处理</option>
            	<option {if $parm['status']=='2'}selected{/if} value="2">已处理</option>
            </select>
        </div>
        
        <div class="choose fl mr15">
        	<span>手机号</span>
            <input type="text" id="keyword" name="keyword" class="mr15 w130 text" value="{$parm['keyword']}">
        </div>
       
        <div class="btn_box fl">
        	<input type="submit" name="submit" class="btnblue mr15" value="搜索">
        </div>
    </form>
    </div>
	
	<!-- list -->
	<table class="table">
		<thead>
			<tr class="bg_h_1">
				<th width="">姓名</th>
				<th width="">手机号</th>
				<th width="">提现金额</th>
				<th width="">申请时间</th>
				<th width="">提现状态</th>
				<th width="">操作人</th>
				<th width="">操作时间</th>
            	<th width="">操作</th>
			</tr>
		</thead>
		<tbody>
		<!--{loop $list $key $one}-->
			<tr>
				<td style="text-align: center;">{$one['user']['nickname']}</td>
				<td style="text-align: center;">{$one['user']['loginname']}</td>
				<td style="text-align: center;">{$one['money']}</td>
				<td style="text-align: center;">{php echo time_formart($one['addtime'],2)}</td>
				<td style="text-align: center;">
					{if $one[status] == 1}
						未处理
					{elseif $one[status] == 2}
						转账成功
					{elseif $one[status] == 3}
						转账失败
					{/if}
				</td>
				<td style="text-align: center;">{$one[opinfo]['loginname']}</td>
				<td style="text-align: center;">{php echo time_formart($one[opinfo]['optime'],2)}</td>
				<td style="text-align: center;">
					{if $one[status] == '1'}
						<a href="{SITE_URL}admin.php?a={$action}&m=chuliTixian&id={$one[id]}" class="btn_set"  title="处理">处理</a>
					{else}
						<a href="{SITE_URL}admin.php?a={$action}&m=chuliTixian&id={$one[id]}" class="btn_look"  title="查看详情">查看详情</a>
					{/if}
				</td>
			</tr>
		<!--{/loop}-->
		</tbody>
	</table>
</div>

<!--{php pagenav($pageurl,$page,$pagetotal);}-->
{template admin/foot}